<script setup>
import { ref } from 'vue';
// 组件无需注册
import Child from './Child.vue';

const money = ref(100)

const num = ref(2)
</script>
<template>
  <div>
    num: {{num}}
    <Child :money="money" @updateMoney="money -= $event" @updateNum="num -= $event" />
  </div>
</template>
